var autoIncrement = require('mongoose-auto-increment')
var mongoose = require('mongoose');
var schema = mongoose.Schema;

var Token = function(){
    var tokenSchema = new schema({
        token : { type: String, index: true, default: Math.random().toString(36).substr(2) },
        uid : { type: Number, index: true }
    });
    return mongoose.model('Token',tokenSchema, 'Token');
};

module.exports = Token;
